package com.benjaminwan.read.free.model.bean

import com.benjaminwan.read.free.utils.HiUtils.fromHtmlAndStrip

data class ContentText(val text: String) : ContentAbs() {
    private val mSb: StringBuilder = StringBuilder()

    fun append(txt: String?) {
        mSb.append(txt)
    }

    override val content: String
        get() = mSb.toString()

    override val copyText: String
        get() = fromHtmlAndStrip(mSb.toString()).toString()

    init {
        mSb.append(text)
    }
}